coreVersion: v1
kind: Item
includeTemplates:
  - default
  - versioned
  - localized
metadata:
  name: product
  displayName: Product
  pluralName: products
  displayPluralName: Products
  dataSource: main
  tableName: design_products
  titleAttribute: label
  description: Products
  icon: ContainerOutlined
  core: false
  performDdl: true
#  versioned: true
#  manualVersioning: false
#  localized: true
  notLockable: false
spec:
  attributes:
    label:
      type: string
      columnName: label
      displayName: Label
      description: Label
      required: true
      unique: true
      length: 50
      colWidth: 150
    name:
      type: string
      columnName: name
      displayName: Name
      description: Name
      required: true
      unique: true
      length: 50
      colWidth: 300
    description:
      type: string
      columnName: description
      displayName: Description
      description: Description
      length: 250
      colWidth: 300
    parts:
      type: relation
      relType: oneToMany
      target: part
      mappedBy: product
      displayName: Parts
      description: Parts
    partLabelGroups:
      type: relation
      relType: oneToMany
      target: partLabelGroup
      mappedBy: product
      displayName: Label Groups
      description: Label Groups
